$(document).ready(function() {
	var isLoadIframe = false;
	var isLoadInfo = false;
	var json = null;
	iframe.window.onload = function() {
		isLoadIframe = true;
		if (isLoadInfo && isLoadIframe) {
			iframe.window.init(json.data);
		}
	}

	$.post('ajax_get_application_info', {
		id : $('#application_id').val()
	}, function(data, status) {
		if (status == 'success') {
			if (data.type >= 0) {
				isLoadInfo = true;
				json = data;
				if (isLoadInfo && isLoadIframe) {
					iframe.window.init(json.data);
				}
			}else{
				alert(data.msg);
				location.href = 'Index';
			}
		} else {
			alert('网络错误');
			location.href = 'Index';
		}
	});

});